
var inorderTraversal = (root) => {
  let queue = []
  const inorder = (root) => {
    if(!root) return 
    inorder(root.left)
    queue.push(root.val)
    inorder(root.right)
  }
  inorder(root)
  return queue
}